<template>
    <div class="addButton" @click='go_add_pages'>
        <div class='add'> </div>
    </div>
</template>


<script>
export default {
    methods:{
        go_add_pages(){
            switch(this.type){
                 case "移库" :
                    wx.navigateTo({ url: '/pages/depotMoveAdd/main' })
                break;
                 case "自采车辆出库申请" :
                    wx.navigateTo({ url: '/pages/carBusinessApplyDetail/main' })
                break;
                default:
                break;
            }
        }
    },
    props:["type"]
}
</script>


<style lang="scss" scoped>
.addButton{
      position: fixed;
        top:75%;
        right:20rpx;
        padding:4px;
        background-color: rgba(0,0,0,.3);
        border-radius:20rpx;
        z-index: 100;
    .add{
        width:32rpx;
        height:32rpx;
        background: url('../../../static/images/add.png') no-repeat;
        background-size: cover;
    }
}
</style>
